//
//  UIAlertView+RAC.h
//  高仿暴走斗图
//
//  Created by key on 16/3/22.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIAlertView (RAC)

/**
 *  UIAlertView关于RAC的封装范畴_rac格式
 *
 *  @param title             title
 *  @param message           message
 *  @param delegate          delegate
 *  @param cancelButtonTitle cancelButtonTitle
 *  @param otherButtonTitles otherButtonTitles
 *
 *  @return rac信号，点击到button的index
 */
+ (RACSignal *)rac_showAlertWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...  NS_EXTENSION_UNAVAILABLE_IOS("Use - rac_showAlertViewWithTitle: Or - showAlertViewNextBlock");

/**
 *  UIAlertView关于RAC的封装范畴_block格式
 *
 *  @param nextBlock         点击到按钮后的回调
 *  @param title             title
 *  @param message           message
 *  @param delegate          delegate
 *  @param cancelButtonTitle cancelButtonTitle
 *  @param otherButtonTitles otherButtonTitles
 */
+ (void)showAlertViewNextBlock:(void (^)(id x))nextBlock withTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;
+ (void)showAlertViewNextBlock:(void (^)(id x))nextBlock withTitle:(NSString *)title message:(NSString *)message cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;

/**
 *  UIAlertView关于RAC的封装范畴_rac格式
 *
 *  @param title             title
 *  @param message           message
 *  @param delegate          delegate
 *  @param cancelButtonTitle cancelButtonTitle
 *  @param otherButtonTitles otherButtonTitles
 *
 *  @return rac信号，点击到button的index
 */
+ (RACSignal *)rac_showAlertViewWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;
+ (RACSignal *)rac_showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray<NSString *> *)otherButtonTitles;

@end
